/**
 * 
 */
package com.zt.base.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

/**
 * HibernateBaseDaoImpl
 * 
 * @author zhangzhw
 * 
 */
public class HibernateBaseDaoImpl<T, PK extends Serializable> extends
		HibernateDaoSupport {
	
	/**
	 * 查询所有对象
	 * @param hql
	 * @return
	 */
	@SuppressWarnings("unchecked")
	public  List<T> findAll(String hql)
	{
		return (List<T>)super.getHibernateTemplate().find(hql);
	}

}
